package com.anti.modular.owner.ownerleasefees.param;

import com.anti.commom.pojo.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
* 固定費用参数类
 *
 * @author anti
 * @date 2021-05-20 14:28:05
*/
@Data
public class OwnerLeaseFeesParam extends BaseParam {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    /**
     * 業主租约主键
     */
    private Long ownerLeaseId;

    /**
     * 固定费用id
     */
    private Long feesId;

    /**
     * 固定费用名称
     */
    @NotBlank(message = "固定费用名称不能为空，请检查feesName参数", groups = {add.class, edit.class})
    private String feesName;

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空，请检查amount参数", groups = {add.class, edit.class})
    private BigDecimal amount;

    /**
     * 状态（字典 0正常 1注銷 2刪除）
     */
    private Integer status;

}
